//
//  PayRecord.m
//  fGeekApp
//
//  Created by Administrator on 15/3/7.
//  Copyright (c) 2015年 cwx. All rights reserved.
//

#import "PayRecord.h"

@implementation PayRecord

-(PayRecord *)initPayRecordInstanceByDict:(NSDictionary *)dict{
    
    if (self = [super init]) {
        
        self.payRecordID = [[dict valueForKey:@"pay_id"] integerValue];
        self.payRecordMoney = [[dict valueForKey:@"pay_money"] integerValue];
        self.payRecordTime  = [[dict valueForKey:@"pay_time"] integerValue];
        self.orderID = [[dict valueForKey:@"order_id"] integerValue];
        self.userID = [[dict valueForKey:@"user_id"] integerValue];
        self.goodsName = [dict valueForKey:@"goods_name"];
        self.goodsPrice = [[dict valueForKey:@"goods_price"] floatValue];
        self.goodsImagePath = [dict valueForKey:@"goods_imagePath"];
        self.goodsContentBody = [dict valueForKey:@"goods_content"];
        self.goodsSaleCount = [[dict valueForKey:@"goods_saleCount"] integerValue];
    }
    return self;

}

+(PayRecord *)getPayRecordInstanceByDict:(NSDictionary *)dict{
    return [[self alloc]initPayRecordInstanceByDict:dict];
}

@end
